home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10314 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: news.biddeford.com!usenet
  2. From: Tim Steiger <tsteiger@biddeford.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Invalid Indirection???
  5. Date: Sat, 16 Mar 1996 14:14:44 -0800
  6. Organization: Biddeford Internet Corp.
  7. Message-ID: <314B3D54.266E@biddeford.com>
  8. References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net> <TANMOY.96Mar15111443@qcd.lanl.gov>
  9. NNTP-Posting-Host: bidd23.biddeford.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Tanmoy Bhattacharya wrote:
  16. > In article <4iah9k$r02@newshost.cyberramp.net>
  17. > sinan@cyberramp.net (John Noland) writes:
  18. > JN: In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
  19. > JN: >
  20. > JN: > tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
  21. > JN: >
  22. > JN: >/* This is where the compiler stops and says there's an invalid
  23. > JN: >indirection for the "tmp" assignment */
  24. > JN:
  25. > JN: To multiply, you need whitespace. Check the lexical conventions for the
  26. > Why?go read about unary operators...
  27.  
  28. > JN: evaluation of tokens for your compiler to be certain, but it looks like
  29. > JN: you've confused him.
  30. > Wasn't the original poster using a C compiler? Big mistake trying to
  31. > compile a C program without one :-)duh?!?!? What?!?!?
  32.  
  33. > Or are you under the misapprehension that a compiler can get confused
  34. > by correct and trivial code and still call itself a C compiler? Or
  35. > that it can have `lexical conventions for the evaluation of tokens'
  36. > whatever that garbage is?Do you're bosses know how you are spending their time?
  37.  
  38. > JN: Also, your open/closed parentheses don't match in this statement.
  39. > JN:
  40. > JN: Your statement should like this (underscores indicate spaces):
  41. > JN:
  42. > JN: tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
  43. > Spaces are often good for reasability, but in this context, they do
  44. > not change the meaning of the code.
  45. > Cheers
  46. > Tanmoy
  47. > --
  48. > tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  49. > Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  50. > Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  51. > <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  52. > internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  53. > fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  54.